﻿using System;
using System.Web;
using System.Web.Configuration;
using System.Web.Security;

namespace Tizer.Web.Backoffice
{
    /// <summary>
    /// Мастре-страница администрации
    /// </summary>
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Выход из администрации
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Logout(object sender, EventArgs e)
        {
            HttpContext.Current.Session[WebConfigurationManager.AppSettings["LoggedAccount"]] = null;
            FormsAuthentication.SignOut();
            Response.Redirect(AdminBasePage.UrlHome);
        }
    }
}